#-------------------------------------------------
#
# Project created by QtCreator 2024-09-12T15:18:39
#
#-------------------------------------------------
QT += dbus widgets dbus-private xml
QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets



TARGET = TestManager_Dbg_tools
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += \
        main.cpp \
        mainwindow.cpp \
    qdbusmodel.cpp \
    qdbusviewer.cpp \
    logviewer.cpp \
    servicesproxymodel.cpp \
    dbustypedlg.cpp \
    devicedlg.cpp \
    dbuspath.cpp \
    dbusobjmodel.cpp \
    dbusmethodmodel.cpp \
    dbustestmodel.cpp \
    itemtype.cpp \
    common.cpp \
    dragdropmodel.cpp \
    propertydlg.cpp \
    propertymodel.cpp \
    propertyitem.cpp \
    dbusvaluedelegate.cpp \
    dbusargv.cpp \
    dbusargvitem.cpp \
    dbusargvmodel.cpp \
    dictform.cpp \
    dbuscaller.cpp \
    checkboxdelegate.cpp \
    dbusSignalmodel.cpp \
    qdbusresult.cpp \
    hexvalidator.cpp \
    dbuslog.cpp \
    localmethod.cpp

HEADERS += \
        mainwindow.hpp \
    qdbusmodel.h \
    qdbusviewer.h \
    logviewer.h \
    servicesproxymodel.h \
    dbustypedlg.hpp \
    devicedlg.hpp \
    dbuspath.hpp \
    dbusobjmodel.hpp \
    dbusmethodmodel.hpp \
    dbustestmodel.hpp \
    common.hpp \
    dragdropmodel.h \
    propertydlg.hpp \
    propertymodel.hpp \
    propertyitem.hpp \
    dbusvaluedelegate.hpp \
    dbusargv.hpp \
    dbusargvitem.hpp \
    dbusargvmodel.hpp \
    dictform.hpp \
    dbuscaller.hpp \
    checkboxdelegate.hpp \
    dbusSignalmodel.hpp \
    qdbusresult.hpp \
    hexvalidator.hpp \
    dbuslog.hpp \
    localmethod.hpp

FORMS += \
        mainwindow.ui \
    devicedlg.ui \
    dbuspath.ui \
    propertydlg.ui \
    dictform.ui

RESOURCES += \
    images.qrc

mac {
    ICON = images/dbg.icns
    QMAKE_INFO_PLIST = Info_mac.plist
    QMAKE_LFLAGS += -Wl,-rpath,@executable_path/../../../Frameworks
    QMAKE_LFLAGS += -Wl,-rpath,@executable_path/../../../CustomLibs
}

win32 {
    RC_FILE = TestManager_Dbg_tools.rc
}

#macx {
#    QMAKE_RPATHDIR += $$ORIGIN
#    QMAKE_RPATHDIR += $$ORIGIN/..
#    QMAKE_RPATHDIR += $$ORIGIN/../..
#    QMAKE_RPATHDIR += $$ORIGIN/../../..
#    QMAKE_RPATHDIR += $$ORIGIN/../../../..
#    QMAKE_RPATHDIR += $$ORIGIN/../../../../..
#    QMAKE_RPATHDIR += $$ORIGIN/../../../../../..

#    QMAKE_RPATHDIR += $$ORIGIN/../../Frameworks
#    QMAKE_FRAMEWORKPATH += $$PWD
#    INCLUDEPATH += "$$PWD/test.framework/Headers"
#    LIBS += -framework test
#}
